PATHMac OS 8 and 9 Developer Documentation > Networking and Communications > URL Access Manager >

Transferring Files With the URL Access Manager


URLGetPropertySize

Gets the size of a property.

OSStatus URLGetPropertySize (
                     URLReference urlRef,
                     const char* property,
                     Size *propertySize);
urlRef
A reference of type URLReference that identifies the URL that has a property whose size you want to obtain.
property
A pointer to a null-terminated array of characters that specifies the name of the property whose size you want to obtain.
propertySize
A pointer to a value of type Size . On return, propertySize contains the size of the property you want to obtain or -1 if the size is not available. For more information on the Size type, see Inside Macintosh: Memory .
function result
A result code. For a list of possible result codes, see Result Codes .

DISCUSSION

The URLGetPropertySize function obtains the size of a property in bytes. You should call URLGetPropertySize before calling URLGetProperty URLGetProperty to make sure the buffer you use when you call URLGetProperty is big enough to hold the property value. Pass the value returned in propertySize as a parameter to the URLGetProperty function.


© 1999 Apple Computer, Inc. – (Last Updated 07 May 99)